import request from './config/request'
import { ApiResponse } from './type'

export interface CategoryAllList {
  id:number,
  name:string
}

// 获取全部类目不分页
export const getAllCategory = (): Promise<ApiResponse<CategoryAllList[]>> => {
  return request.post('/category/findAll')
}
